package paytreasure.po;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 支付宝收入表
 * 
 * @author xhh
 * @date 2017年7月12日
 *
 */

public class Income {

	private String incomeId; // id

	private String income; // 总收入

	private String profit; // 余额宝收益

	private String payment; // 线下收款

	private String refund; // 退款

	private String trading; // 线上交易

	private String other; // 其他

	private Date createDate; // 创建日期

	private String yearMonth;

	private Date createTime; // 创建时间

	private String creater; // 创建者

	private String remark; // 备注

	private int status; // 状态

	public String getIncomeId() {
		return incomeId;
	}

	public void setIncomeId(String incomeId) {
		this.incomeId = incomeId;
	}

	public String getIncome() {
		return income;
	}

	public void setIncome(String income) {
		this.income = income;
	}

	public String getProfit() {
		return profit;
	}

	public void setProfit(String profit) {
		this.profit = profit;
	}

	public String getPayment() {
		return payment;
	}

	public void setPayment(String payment) {
		this.payment = payment;
	}

	public String getRefund() {
		return refund;
	}

	public void setRefund(String refund) {
		this.refund = refund;
	}

	public String getTrading() {
		return trading;
	}

	public void setTrading(String trading) {
		this.trading = trading;
	}

	public String getOther() {
		return other;
	}

	public void setOther(String other) {
		this.other = other;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
		if(createDate!=null){
			this.yearMonth = new SimpleDateFormat("yyyyMM").format(createDate);
		}
	}

	public String getYearMonth() {
		return yearMonth;
	}

	public void setYearMonth(String yearMonth) {
		this.yearMonth = yearMonth;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}